import request from "../utils/request";

export function getDeptList(){
    return request.get('/dept/list');
}

export function getDeptListTree(){
    return request.get('/dept/listTree');
}

export function addDept(params){
    return request.post('/dept/addDept',params);
}

export function deleteDeptById(id) {  
    return request.delete(`/dept/deleteDeptById/${id}`); // 根据需要调整 URL  
}

export function getDeptById(id){
    return request.get(`/dept/getDeptById/${id}`);
}

export function updateDept(data){
    return request.put(`/dept/updateDept`,data);
}